Add patch for gcc6
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 23 Jan 2016 17:17:39 +0000 (18:17 +0100)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 23 Jan 2016 18:30:32 +0000 (19:30 +0100)
Closes: #812015
debian/patches/0012-Fix-compilation-on-gcc6.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0012-Fix-compilation-on-gcc6.patch b/debian/patches/0012-Fix-compilation-on-gcc6.patch
new file mode 100644 (file)
index 0000000..f9d66f4
--- /dev/null
@@ -0,0 +1,35 @@
+From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
+Date: Sat, 23 Jan 2016 18:16:24 +0100
+Subject: Fix compilation on gcc6
+
+---
+ .../include/pcl/registration/correspondence_estimation_backprojection.h | 2 +-
+ .../pcl/registration/correspondence_estimation_normal_shooting.h        | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/registration/include/pcl/registration/correspondence_estimation_backprojection.h b/registration/include/pcl/registration/correspondence_estimation_backprojection.h
+index 9be0043..0a96c58 100644
+--- a/registration/include/pcl/registration/correspondence_estimation_backprojection.h
++++ b/registration/include/pcl/registration/correspondence_estimation_backprojection.h
+@@ -184,7 +184,7 @@ namespace pcl
+           * cloud for computing correspondences. By default we use k = 10 nearest 
+           * neighbors.
+           */
+-        inline void
++        inline unsigned int
+         getKSearch () const { return (k_); }
+         
+         /** \brief Clone and cast to CorrespondenceEstimationBase */
+diff --git a/registration/include/pcl/registration/correspondence_estimation_normal_shooting.h b/registration/include/pcl/registration/correspondence_estimation_normal_shooting.h
+index 84e7b32..4c5e0ab 100644
+--- a/registration/include/pcl/registration/correspondence_estimation_normal_shooting.h
++++ b/registration/include/pcl/registration/correspondence_estimation_normal_shooting.h
+@@ -180,7 +180,7 @@ namespace pcl
+           * cloud for computing correspondences. By default we use k = 10 nearest 
+           * neighbors.
+           */
+-        inline void
++        inline unsigned int
+         getKSearch () const { return (k_); }
+         /** \brief Clone and cast to CorrespondenceEstimationBase */
index 123c5f60b6bcbe557f49836007b16ee4af036b9d..cdd2e7969dfca2847ace9ba1f176fc85024a6fcf 100644 (file)
@@ -9,3 +9,4 @@
 0009-Fix-THIS_METHOD_IS_ONLY_FOR_1x1_EXPRESSIONS.patch
 0010-Fix-THIS_METHOD_IS_ONLY_FOR_INNER_OR_LAZY_PRODUCTS.patch
 0011-Only-set-QVTK_FOUND-if-it-s-actually-found.patch
+0012-Fix-compilation-on-gcc6.patch